package day04;

import java.util.Scanner;

public class test05 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int min = sc.nextInt();
        int max = sc.nextInt();
        int n = sc.nextInt();
        if (min <= max) {//0~1 20~100(*80 + 20)


            int r = (int) (Math.random() * (max - min) + min);
            while (n != r) {
                if (n > r) {
                    max = n;
                    System.out.println("猜大了，最大为：" + max);
                } else {
                    min = n;
                    System.out.println("猜小了，最小为：" + min);
                }
                n = sc.nextInt();
            }
            System.out.println("猜对了");

        } else {
            System.out.println("error");
        }

    }

}
